package com.github.edu.repair.api.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-20
 */
public class TBxFwdl implements Serializable {
    private Integer id;
    private String fwdl;
    private String fwsm;
    private Integer sfqy;
    @JsonIgnore
    private String stateName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFwdl() {
        return fwdl;
    }

    public void setFwdl(String fwdl) {
        this.fwdl = fwdl;
    }

    public String getFwsm() {
        return fwsm;
    }

    public void setFwsm(String fwsm) {
        this.fwsm = fwsm;
    }

    public Integer getSfqy() {
        return sfqy;
    }

    public void setSfqy(Integer sfqy) {
        if(null!=sfqy&&1==sfqy){
            this.stateName="启用";
        }else {
            this.stateName="禁用";
        }
        this.sfqy = sfqy;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }
}
